package com.soup.common.config;

import lombok.Data;

/**
 * jwt相关配置
 *
 * @author zhaoyi
 * @date 2017-08-23 9:23
 */
@Data
public class JwtProperties {

    public static final String JWT_PREFIX = "jwt";

    /**
     * 最大refresh token的间隔，默认30分钟，单位毫秒，即当token的过期时间还有30分钟则refresh token
     */
    private Long expiredInterval = 1800000L;

    /**
     * 默认请求头中携带token的header名称
     */
    private String header = "X-Auth-Token";

    /**
     * token过期时间，单位秒，默认一天
     * jwt:
     *   expiration: 86400
     */
    private Long expiration = 86400L;

    /**
     * md5加密混淆key
     */
    private String md5Key = "5LRPt6RZDL2266qJDuQfyMJDuQ4nvTiAOwjODuatsYdZD7xXqQIawkvuBxcU89puQ4nvTiAOwjODuatsYdZD7xXqQIawkvuBxcU89pVwnuOUCa406vpn034nvTiAOwjODuatsYdZD7xXqQIa269S1vGWfrOt0L269ShG+Q==";

}
